<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Unbenanntes Dokument</title>
<script language="javascript">


function createTable() {

    var myTable     = document.createElement("table");
        var mytablebody = document.createElement("tbody");

        for(var j = 0; j < 5; j++) {
            mycurrent_row = document.createElement("tr");
            for(var i = 0; i < 5; i++) {
                    mycurrent_cell = document.createElement("td");               
                    currenttext = document.createTextNode("row"+j+", column "+i);
                    mycurrent_cell.appendChild(currenttext);
                    mycurrent_row.appendChild(mycurrent_cell);
            }

            mytablebody.appendChild(mycurrent_row);
    }

    myTable.appendChild(mytablebody);
    document.body.appendChild(myTable);
}

</script>   
</head>

<body onload="javascript:createTable()">

</body>
</html>